package demo.DataStrucAndAlgo.SingletonPattern;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/7/30-07-30-9:01
 * @Description：demo.DataStrucAndAlgo.SingletonPattern
 */
//从single类中获取唯一对象
public class SingleDemo {
    public static void main(String[] args) {
        //获取唯一可用对象
        SingleObject01 object01 = SingleObject01.getInstanse();

        //显示消息
        object01.showMessage();            //hello
    }
}
